{include file="public/header" /}
<div class="page">
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">基本信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th >广告名称：</th>
            <td>{$info.adv_title}</td>
            <th>广告位置：</th>
            <td>
                {if condition="($info.adv_address==1)"}客户端主页
                {elseif condition="($info.adv_address==2)"}客户端商城
                {elseif condition="($info.adv_address==3)"}服务端培训
                {/if}
            </td>
            <th>广告分类：</th>
            <td>
                {if condition="($info.ap_id==1)"}文章类
                {elseif condition="($info.ap_id==2)"}满减
                {elseif condition="($info.ap_id==3)"}折扣
                {elseif condition="($info.ap_id==4)"}项目定制
                {/if}
            </td>
        </tr>
        <tr>
            <th >类型</th>
            <td>{$adv_type[$info.adv_type]}</td>
            <th >开始时间</th>
            <td>{$info.adv_startdate|date="Y-m-d H:i:s",###}</td>
            <th>结束时间：</th>
            <td>
                {$info.adv_enddate|date="Y-m-d H:i:s",###}
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="10">基本文件信息</th>
        </tr>
        </thead>
        <tbody>
            {if $info.adv_images}
        <tr>
            <td style="width: 18px;"> 图片:</td>
            <td class="vatop rowform">
                <img width="300px" height="200px" src="{$http_name}/{$info.adv_images}" />
            </td>
        </tr>
         {/if}
        {if $info.video_type}
        <tr>
            <td style="width: 18px;"> 视频:</td>
            <td class="vatop rowform">
               <video width="300" height="300" controls>
                                    <source src="{$http_name}/{$info.video_type}" type="video/mp4">
                              </video>
            </td>
        </tr>
                       
        {/if}

        </tbody>
    </table>

</div>

<script>
    $(function(){
        $('#file_button').click(function(){
            var files = $(this).val();
            $.ajax({
                //请求方式
                type : "POST",
                //请求地址
                url : "getWord",
                //数据，json字符串
                data : {'files':files},
                //请求成功
                success : function(result) {
                    alert(result);
                },
                //请求失败，包含具体的错误信息
                error : function(e){
                    console.log(e.status);
                    console.log(e.responseText);
                }
            });
        });
    });









</script>